package com.qf.mock;

import com.qf.pojo.Order;
import com.qf.service.OrderService;

import java.util.ArrayList;
import java.util.List;

/*
当远程访问失败后，会执行到这mock类中的对应方法
 */
public class OrderServiceMock implements OrderService {
    @Override
    public List<Order> findByUid(Integer uid) throws InterruptedException {
        System.out.println("执行了降级方法...");
        return new ArrayList<>();
    }
}
